package com.victor.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.victor.entity.SearchHistory;
@Mapper
public interface SearchHistoryDao {
    int deleteByPrimaryKey(Integer id);
    /**
     * 添加
     * @param record
     * @return
     */
    boolean insertSelective(SearchHistory record);

    int updateByPrimaryKeySelective(SearchHistory record);

    int updateByPrimaryKey(SearchHistory record);
	/**
	 * 根据uid查询
	 * @param uid
	 * @return
	 */
	List<SearchHistory> selByUid(String uid);
	/**
	 * 根据city和uid查询
	 * @param uid
	 * @param city
	 * @return
	 */
	List<SearchHistory> selByCity(Map<Object, Object> map);
}